<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl"> 
		    <a class="logo navbar-logo f-l mr-10 hidden-xs" 
				href="/ceca_two/modules/index/index.html">
			<img src="/ceca_two/img/MC-Logo.png"/></a>
			<a href="/ceca_two/modules/index/index.html" 
				class="logo navbar-slogan f-l mr-10 hidden-xs"><<返回计价信息网首页</a>
		    <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<li >
						<a href="" >
							<img src="/ceca_two/img/uploading-share.png"/>
						</a>
					</li>
					<li class="dropDown dropDown_hover"> 
						<a href="#" class="dropDown_A"><i id="adminName">岳辰</i> <i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a  onclick="logout(this);"  href="#">退出</a></li>
						</ul>
					</li>
					<li id="Hui-msg"> <a href="#" title="消息"  onclick="goNoticeList()"><span class="badge badge-danger" id="noReadNum">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>
					<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>
<script>
	window.onload=function(){
		$.ajax({
			type:"post",
			url:"/guidance_service/front/user/userNotice.do",
			async:true,
			data:{
				userId:window.localStorage.getItem("userId"),
				state:0
			},
			success:function(data){
				if(data.resultCode=="200"){
					$("#noReadNum").html(data.data.length);
					if(data.data.length<=0){
						$("#noReadNum").remove();
					}
				}
			}
		});	
	}
	function goNoticeList(){
		$('iframe').attr('src','/ceca_two/modules/user/index/notice.html');
	}
</script>